const Router = require('koa-router')
// const fs = require('fs')
// const path = require('path')

// 后台管理系统
let dominateRouter = new Router()

try {
    // dominateRouter.get('/*', async ctx => {
        // ctx.body = 'welcome'
        // ctx.body = fs.readFileSync(path.resolve(__dirname, '../dominate/index.html'), 'utf-8')
    // })
} catch (error) {
    console.log(111, error)
}

// 装载所有子路由
let router = new Router()

router.use('/dominate', dominateRouter.routes(), dominateRouter.allowedMethods())

module.exports = router
